//
//  AttachementContent.m
//  xjairOA
//
//  Created by apple on 15-12-26.
//  Copyright (c) 2015年 net. All rights reserved.
//

#import "AttachementContent.h"

@implementation AttachementContent

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title=@"附件内容";
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *docDirectory = [documentsDirectory stringByAppendingString:@"/test/"];
    NSString * docPath = [docDirectory stringByAppendingString:self.DocumentName];
    //NSLog(@"#######%@",docPath);
    NSURL *url = [NSURL fileURLWithPath:docPath];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [self.webview loadRequest:request];
}

@end
